package gui;

import java.awt.BorderLayout;

import javax.swing.Action;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class GUIDialog extends CustomJFrame{
	
	private static final long serialVersionUID = 1L;
	private CustomJDialog dialogPanel;
	public GUIDialog(JFrame parent) {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		dialogPanel = new CustomJDialog(this, parent, 20);
		setLayout( new BorderLayout());
		add(dialogPanel);
		parent.setEnabled(false);
	}
	
	public void setContentLayout(JPanel contentPanel){
		dialogPanel.setContentLayout(contentPanel);
	}
	
	public void setTitle(String title){
		dialogPanel.setTitle(title);
	}
	
	public void setExitAction(Action a){
		dialogPanel.setExitAction(a);
	}
}
